win32: Refactor context creation
authorBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 02:17:32 +0000 (04:17 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 27 Apr 2023 00:13:33 +0000 (02:13 +0200)
commit8ef38c46b5ac360dc2cb68e50a4c387026a62db3
treeabee2a491c01601d9aae644239f640bfc22fe36c
parent4333d754b87d1a99112363f4e157bb2682eda88f
win32: Refactor context creation

This refactor achieves the following:

 * check GL version against proper matching context version
   In particular, for legacy contexts, we now actually check
 * make sure the actual version is set, even for legacy contexts
 * make sure set_is_legacy() is set properly
gdk/win32/gdkglcontext-win32-wgl.c